﻿@{
    ViewBag.PageModule = "generalize";
    ViewData["Module"] = "statistic";
}
@Html.IncludePage("CoralAdmin/Statistic", "_Left")
<div id="pbody">
    <div class="extra scrolltab">
        <div class="pbody_top">
            <span class="ico ico_setting_system"></span><span class="t t_c">推广链接&nbsp;&nbsp;/&nbsp;&nbsp;<b
                                                                                                             class=" t_small f_no">推广链接生成</b></span>
        </div>
        <div id="main">
            <div class="scrolltab-triggers extra_normal">
                <a href="javascript:">主要信息</a>
            </div>
            <form id="spform" action="/m/bookmark/generalize" method="post" enctype="multipart/form-data">
                @if (@ViewBag.Msg != null)
                {
                    <div class="error_msg">
                        @ViewBag.Msg.Msg
                    </div>
                }
                <div class="pt_1 pr_2 scrolltab-items">
                    <div class="table_form form_main" id="主要信息">
                        <div class="scrolltab-item-t">
                            <span class="btn"></span>主要信息
                        </div>
                        <div class="pl_2">
                            @Html.AntiForgeryToken()
                            @Html.ValidationSummary(true)
                            <table>
                                <tbody>
                                    <tr>
                                        <th width="60">链接<span class="rq">*</span></th>
                                        <td>
                                            <input type="text" class="text w_37 required" name="Url" value=""/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th width="60">链接类型<span class="rq">*</span></th>
                                        <td>
                                            <label class="mr_2">
                                                <input name="urlType" class="radio" type="radio" checked="checked" value="long"><span>长链接</span></label>
                                            <label class="mr_2">
                                                <input name="urlType" class="radio" type="radio" value="short"><span>短链接</span></label>
                                            <label class="mr_2">
                                                <input name="urlType" class="radio" type="radio" value="qrCode"><span>二维码</span></label>
                                        </td>
                                    </tr>
                                    @if (ViewBag.GeneralizeUrl != null || ViewBag.Image != null) {
                                        <tr>
                                            <th>结果</th>
                                            @if (ViewBag.GeneralizeUrl != null) {
                                                <td>
                                                    <label>@ViewBag.GeneralizeUrl</label>
                                                </td>
                                            } else {
                                                <td>
                                                    <img src="@ViewBag.Image"/>
                                                </td>
                                            }
                                        </tr>
                                    }
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
                <div class="submitbox p_2 pt_1 extra_normal">
                    <input type="submit" class="btn_1" value="生  成" />
                </div>
            </form>
        </div>
    </div>
</div>
